<?
	$ncGacetilla = $this->aDatos[$cTemplateId][ncGacetilla];
	$nEnvio = $this->aDatos[$cTemplateId][nEnvio];

	if ( !$nEnvio  ) {
		$cSql = "SELECT MAX(ncOrden) FROM gtGacetillaEnvio WHERE ncGacetilla = $ncGacetilla  ";
		$nEnvio = $this->oDatabase->getData( $cSql ) ; 
	}
	
	if ( file_exists( PATH_FILES . "/gacetillas/$ncGacetilla/$nEnvio.html")  )  {
		echo "<iframe frameborder='0' height='100%'  width='100%'   src='" . URL_FILES . "/gacetillas/$ncGacetilla/$nEnvio.html' ></iframe>";
		//readfile ( PATH_FILES . "/gacetillas/$ncGacetilla/$nEnvio.html" );
	} // else echo PATH_FILES . "/gacetillas/$ncGacetilla/$nEnvio.html" ;
?>